var gulp = require('gulp');
var clean = require('gulp-clean');
var replace = require('gulp-replace');
gulp.task('copyToApp', function() {
    console.log('=====开始拷贝资源文件到安卓目录');
    // 先删除cordovaApp项目html目录下的文件
    gulp.src(['../elemeApp/www/js/*','../elemeApp/www/css/*']).pipe(clean({force: true}));
    return gulp.src(['dist/**/*']).pipe(replace(/\/api/g,'http://vue.demo.zhuzhilong.cn/api')).pipe(gulp.dest('../elemeApp/www/'))
});
